import App from './App'

// #ifndef VUE3
import Vue from 'vue'

Vue.config.productionTip = false

//引入请求库
import $R from './utils/request.js'
Vue.prototype.$R = $R

import {
	getScreenInfo
} from './utils/util.js';
Vue.prototype.$getScreenInfo = getScreenInfo;

import {
	getStoreInfo
} from './utils/util.js';
Vue.prototype.$getStoreInfo = getStoreInfo;

//引入状态存储
import store from './store/index.js'
Vue.prototype.$store = store

// 引入全局分享
import weChartShare from './utils/weChartShare.js'
Vue.mixin(weChartShare)

App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif